<?php 
/**
 * 评论管理控制器
 */
class CommentController extends Controller{
	/**
	 * 显示订单
	 */
	public function index(){
		$data = M('comment')->all();
		$this->assign('comment_data',$data);
		$this->display();
	}
	/**
	 * 删除订单
	 */
	public function del_comment(){
		$coid = Q('get.coid','0','intval');
		M('comment')->where("coid='{$coid}'")->delete();
		$this->success('删除评论成功',U("index"),0.5);
	}
}








 ?>